<%@ page contentType="text/html;charset=UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<c:set var="extLibs" value=""/>
<sys:header title="导入" extLibs="${extLibs}"/>

<div class="portlet box ${boxStyleColor} autoHeight">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-puzzle-piece"></i>商品信息据导入</div>
	</div>
	<div class="portlet-body form">
	   <form:form id="inputForm" enctype="multipart/form-data" action="${ctx}/mdm/inventory/importData" method="post" class="form-horizontal">
	   	   <div class="form-body">
	   	        <div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4"><span class="required">*</span> 请选择excel：</label>
							<div class="col-sm-8">
								<input id="uploadFile" class="form-control required" name="file" type="file" style="width:330px"/>
							</div>
						</div>
					</div>					
				</div>	   	        
				<div class="row">					
					<div class="col-xs-6">
						<div class="form-group">							
							<div class="col-sm-8 col-sm-offset-4">
							    <a  href="${ctx}/mdm/inventory/downloadTemplate">下载模板</a>
							</div>
						</div>
					</div>
				</div>
				<div class="row" >
				    <div class="col-xs-10">
					   <h4><span id="msgSpan">${message}</span></h4>
				    </div>
				</div>
	   	   </div>
	   	   <div class="form-actions fluid">
	   	        <div class="row">
					<div class="col-xs-12">
						<div class="col-sm-offset-2 col-sm-10">
						    <shiro:hasPermission name="mdm:inventory:edit">
							  <button id="btnSubmit" type="submit" class="btn btn-primary"><i class="fa fa-check"></i> 导入</button>&nbsp;
							</shiro:hasPermission>
							<button id="btnCancel" type="button" onclick="closeCurrentTabPage('${param.parentTabPageId}')" class="btn default" ><i class="fa fa-reply-all"></i> 关 闭</button>
						</div>
					</div>
				</div>
	   	   </div>
	   </form:form>
	</div>
</div>
<sys:footer extLibs="${extLibs}"/>

